//@author IDE
#pragma once

namespace UI {
	using namespace System;
	using namespace System::ComponentModel;
	using namespace System::Collections;
	using namespace System::Windows::Forms;
	using namespace System::Data;
	using namespace System::Drawing;

	/// <summary>
	/// Summary for TaskItHelp
	/// </summary>
	public ref class TaskItHelp : public System::Windows::Forms::Form {
	public:
		TaskItHelp(void) {
			InitializeComponent();
			//
			//TODO: Add the constructor code here
			//
		}

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~TaskItHelp() {
			if (components) {
				delete components;
			}
		}

	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void) {
			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(TaskItHelp::typeid));
			this->SuspendLayout();
			// 
			// TaskItHelp
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->BackgroundImage = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"$this.BackgroundImage")));
			this->BackgroundImageLayout = System::Windows::Forms::ImageLayout::None;
			this->ClientSize = System::Drawing::Size(866, 567);
			this->Icon = (cli::safe_cast<System::Drawing::Icon^>(resources->GetObject(L"$this.Icon")));
			this->Name = L"TaskItHelp";
			this->Text = L"TaskItHelp";
			this->KeyDown += gcnew System::Windows::Forms::KeyEventHandler(this, &TaskItHelp::TaskItHelp_KeyDown);
			this->ResumeLayout(false);

		}
#pragma endregion

//@author A0099983B
/// <summary>
/// This class TaskItHelp is to display the Help Window when the user presses
/// 'F1' and closes the Window after the user presses 'F1' again.
/// </summary>

//This function is to hide this window when the user presses 'F1'.
//Pre-Req: Form has loaded.
//Post-Req: Help Window Close.
	private: System::Void TaskItHelp_KeyDown(System::Object^ sender, System::Windows::Forms::KeyEventArgs^ e) {
				 if (e->KeyCode == Keys::F1) {
					 this->Hide();
				 }
	}
	};
}
